package com.zj.eswrapper.wrapper;

import com.zj.eswrapper.interfaces.field.IStringField;

/**
 * @author 19242
 */
public class EsAggWrapper<DO> extends AbstractEsLastAggWrapper<String, EsAggWrapper<DO>, EsQueryWrapper<DO>>
        implements IStringField<EsLambdaAggWrapper<DO>> {

    public EsAggWrapper() {
    }

    public EsAggWrapper(AbstractEsLastAggWrapper<?, ?, ?> aggWrapper) {
        super(aggWrapper);
    }

    @Override
    protected EsQueryWrapper<DO> createQueryWrapper() {
        return new EsQueryWrapper<>();
    }

    @Override
    protected EsAggWrapper<DO> createWrapper() {
        return new EsAggWrapper<>();
    }

    @Override
    public EsLambdaAggWrapper<DO> lambda() {
        return new EsLambdaAggWrapper<>(this);
    }
}
